package com.cyy.common.pojo.vo.api;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class ApiMessageVo implements Serializable {

    @Schema(description = "评论ID")
    private Integer id;

    @Schema(description = "父级ID")
    @JsonIgnore // 制作判断
    private Integer parentId;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "内容")
    private String content;

    // 这个字段当前没法用了 前端组件不支持实时渲染
    @Schema(description = "是否点赞")
    private Boolean clickLike;

    // 这个字段当前没法用了 前端组件不支持实时渲染
    @Schema(description = "点赞数")
    private Integer likeCount;

    @Schema(description = "是否是当前用户")
    private Boolean isMe;

    @Schema(description = "弹幕发送时间")
    private LocalDateTime sendTime;
}
